<template>
  <div class="prosBetween-item">
    <h3 class="text-purple-1300 text-22 leading-7 font-semibold break-words w-full">
      {{$t('vs_coreFeaturesOf',{toolName: $websiteName(toolData)})}}
    </h3>
    <div class="mt-10"
      v-if="website && hasRealVal(website.core_features) && website.core_features.length > 0">
      <ul class="space-y-4 mt-5 pros-ul">
        <li v-for="(item, key) in website.core_features"
          :key="key">
          <div class="text-base text-gray-1000 break-words">
            {{item}}
          </div>
        </li>
      </ul>
    </div>
    <el-empty v-else
      :description="$t('vs_noData')"></el-empty>
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
  name: 'CompareVsProsBetween',
  props: {
    toolData: {
      type: Object | null,
      default() {
        return {}
      },
    },
    website: {
      type: Object | null,
      default() {
        return {}
      },
    },
  },
  computed: {
    ...mapState({
      locale: (state) => state.locale,
    }),
  },
}
</script>
<style lang='scss' scoped>
.prosBetween-item {
  ul {
    li {
      div {
        position: relative;
        display: inline-block;
        max-width: 100%;
        padding-left: 16px;
        &::after {
          display: block;
          position: absolute;
          content: '';
          left: 0;
          width: 6px;
          height: 6px;
          top: 9px;
          background: #191919;
          border-radius: 50%;
        }
      }
    }
  }
}
</style>
